package net.freestu.sola.web.util;

import java.util.Calendar;

public class TimeOperator {
	
	
	public static String getCurrTime(){
		
		int y, m, d, h, mi, s;
		Calendar cal = Calendar.getInstance();
		y = cal.get(Calendar.YEAR);
		m = cal.get(Calendar.MONTH);
		d = cal.get(Calendar.DATE);
		h = cal.get(Calendar.HOUR_OF_DAY);
		mi = cal.get(Calendar.MINUTE);
		s = cal.get(Calendar.SECOND);
		
		String time= y + "." + m + "." + d + "." + h + "." + mi;
		
		return time;
		
		//System.out.println("现在时刻是" + y + "." + m + "." + d + "." + h + "." + mi);
		
	}
	
	
	public static void main(String[] args){
		
		System.out.println(getCurrTime());
		
	}

}
